package com.xbongbong.pro.workorder.pojo.dto;/*/*/

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 *
 * @author 魏荣杰
 * @date 2019/3/7 14:21
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class WorkOrderTemplateCategorySaveDTO extends BaseDTO{
    private static final long serialVersionUID = -6364322463691119317L;
    /**
     * 分类id
     */
    private Long id;
    /**
     * 工单模板分类名称
     */
    @NotNull(message = "{dto.msg.workOrderTemplateCategorySave.name.NotNull}")
    private String name;

    /**
     * 工单模板分类英文名称
     */
    private String nameEn;
    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.workOrderTemplateCategorySave.appId.NotNull}")
    @Range(min = 1L, message = "{dto.msg.workOrderTemplateCategorySave.appId.Range}")
    private Long appId;
}
